package com.example.designpattern.template;

import com.example.designpattern.delegate.CheckTypeEnum;
import org.springframework.stereotype.Service;

/**
 * @author long
 * @date 2024/11/16 22:02
 */
@Service
public class FreeCheckServiceImpl extends AbstractCheckServiceImpl {

    @Override
    public void doCheck(String context) {
        // 执行免检逻辑
        System.out.println("-------------执行免检逻辑-------------");
    }

    @Override
    protected void validateArgs(String args) {
        System.out.println("校验免检参数");
    }

    @Override
    public CheckTypeEnum checkType() {
        return CheckTypeEnum.FREE_CHECK;
    }


}
